import {LAYOUT} from '@/router/constants';
import type {RouteRecordItem} from 'vc/src/router';

const EnvironmentWeather: RouteRecordItem = {
  path: '/environmentWeather',
  component: LAYOUT,
  meta: {
    title: '气候变化',
    menuIndex: 2,
    subMenuIndex: 2
  },
  children: [
    {
      path: 'carbonEmission' + '/:type',
      component: () => import('@/views/modules/environmentWeather/carbonEmission/index.vue'),
      meta: {
        title: '上市公司碳排放'
      }
    },
    {
      path: 'carbonQuota',
      component: () => import('@/views/modules/environmentWeather/carbonQuota/index.vue'),
      meta: {
        title: '碳配额管理单位'
      }
    },
    {
      path: 'carbonCompliance',
      component: () => import('@/views/modules/environmentWeather/carbonCompliance/index.vue'),
      meta: {
        title: '全国碳履约'
      }
    },
    {
      path: 'carbonReduction',
      component: () => import('@/views/modules/environmentWeather/carbonReduction/index.vue'),
      meta: {
        title: '碳减排支持工具'
      }
    }
  ]
};

export default EnvironmentWeather;
